<?
if(!ANTIHACK) die("ANTIHACK...");
//and parent in (1,2,3,4,5,13,14)
	$q=query("select * from ngoisaotocviet order by rand() limit 10");
	$i=0;
	while($r=fetch($q))
	{
		$r["link"] = buildlink("san-pham",$r);
		$data[]=$r;
	}
	$data[count($data)-1]["end"]=1;
$smarty->assign("data",$data);
$smarty->display("sanpham.htm");
?>